<?php
class tbl_event extends AppModel
{
    public $useTable = 'event_datas';
    public $useDbConfig = 'fantasy_hero_kr';
    public $primaryKey = '_id';
    //public $order = array('last_login_date' => 'DESC');

    public function loadEventData()
    {
        $params = array(
            'fields' => array(
                'type', 'event_flag','reward_type','reward_id','end_time','start_time','count','message'
            ),
        );

        $data = $this->find('all', $params);

        return $data;
    }
}